<template>
  <div>
    子组件--{{ aa }}--{{ bb }}
    <button @click="hClick">+1</button>
  </div>
</template>

<script>
export default {
  props: {
    // value: {
    //   type: Number,
    //   required: true
    // }
    aa: {
      type: Number,
      required: true
    },
    bb: {
      type: Number,
      required: true
    }
  },
  methods: {
    hClick() {
      // this.$emit('input', this.value + 1)
      this.$emit('update:aa', this.aa + 1)
      this.$emit('update:bb', this.bb + 1)
    }
  }
}
</script>
